<?php
class connection {
	
	var $host;
	var $name;
	var $pass;
	var $database;
	
	function _connection() {
		$this->host="localhost";
		$this->name="root";
		$this->pass="";
		$this->database="comic_store";
	}
	
	function dbconnect() {
		_connection();
		$connection = mysql_connect($this->host,$this->name,$this->password);
		mysql_select_db($this->database,$connection);
	}
	
}

class login {
	
	var $username;
	private $password;
	
	function check_user($user,$pass) {
		$this->username=$user;
		$this->password=$pass;
	}
	
}
?>